package com.mt.restaurant.dao.sale;

import com.mt.common.core.web.base.PageDTO;
import com.mt.common.core.web.base.PageResultDTO;
import com.mt.restaurant.entity.sale.SaleOrderSettlement;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
@Component(value = "saleOrderSettlementDao")
public interface SaleOrderSettlementDao {

    /**
    * 根据分页参数查询销售订单结算集合
    *
    * @param pageDTO 分页条件
    */
    public List<SaleOrderSettlement> findSaleOrderSettlements(PageDTO pageDTO);

    /**
    * 查询全部销售订单结算集合
    *
    */
    public List<SaleOrderSettlement> findAllSaleOrderSettlements();

    /**
    * 查询所有销售订单结算集合(只提取ID 和 Name)
    *
    */
    public List<SaleOrderSettlement> findAllSaleOrderSettlementsWithIdName();

    /**
    * 根据名称查询销售订单结算集合(只提取ID 和 Name)
    *
    * @param saleOrderSettlementName 名称
    */
    public List<SaleOrderSettlement> findSaleOrderSettlementsWithIdNameByName(@Param("saleOrderSettlementName") String saleOrderSettlementName);

    /**
    * 根据ID查询指定的销售订单结算(只提取ID 和 Name)
    *
    * @param saleOrderSettlementId Id
    */
    public SaleOrderSettlement findSaleOrderSettlementsWithIdNameById(@Param(" saleOrderSettlementId") Long saleOrderSettlementId);

    /**
    * 根据分页参数查询销售订单结算集合的数量
    *
    * @param pageDTO 分页条件
    */
    public Long findSaleOrderSettlementTotalCount(PageDTO pageDTO);

    /**
    * 根据ID查询指定的销售订单结算
    *
    * @param saleOrderSettlementId Id
    */
    public SaleOrderSettlement findSaleOrderSettlement(@Param("saleOrderSettlementId") Long saleOrderSettlementId);

    /**
    * 根据ID查询指定的销售订单结算(包含外键)
    *
    * @param saleOrderSettlementId Id
    */
    public SaleOrderSettlement findSaleOrderSettlementWithForeignName(@Param("saleOrderSettlementId") Long saleOrderSettlementId);

    /**
    * 新增销售订单结算
    *
    * @param saleOrderSettlement 实体对象
    */
    public Long saveSaleOrderSettlement(SaleOrderSettlement saleOrderSettlement);

    /**
    * 更新销售订单结算
    *
    * @param saleOrderSettlement 实体对象
    */
    public Long updateSaleOrderSettlement(SaleOrderSettlement saleOrderSettlement);

    /**
    * 根据ID删除销售订单结算
    *
    * @param saleOrderSettlementId ID
    */
    public Long deleteSaleOrderSettlement(@Param("saleOrderSettlementId") Long saleOrderSettlementId);
}
